﻿using System;
using Century.EnterpriseLibrary.LogHandler;

namespace Century.EnterpriseLibrary.ExceptionHandler
{
    public class BusinessException : Exception
    {
        public BusinessException()
            : base()
        {
            Loging.Log.Error(this);
        }

        public BusinessException(string message)
            : base(message)
        {
            Loging.Log.Error(message);
        }

        public BusinessException(string message, Exception exc)
            : base(message, exc)
        {
            Loging.Log.Error(message, exc);
        }
    }
}